'use strict';

var Money = require('../models/money');

var start = Date.now().valueOf();
Money.find(function(err, data) {
    var end = Date.now().valueOf() - start;
    if (err) {
        throw err;
    }
    console.log(data);
    console.log();
    console.log('total: %d', data.length);
    console.log('query end; spent: %d s', ( end / 1000 ) );
});
